package cz.muni.fi.pa165.sportclubmanager.service;

import cz.muni.fi.pa165.sportclubmanager.dto.AgeCategoryDTO;
import cz.muni.fi.pa165.sportclubmanager.dto.PlayerDTO;
import java.util.List;
import javax.jws.WebService;

/**
 * 
 * @author Michal Prokeš, 72758
 */
@WebService
public interface PlayerService {
    
    public void create(PlayerDTO p);

    public void update(PlayerDTO p);

    public void remove(PlayerDTO p);

    public PlayerDTO find(Long id);

    public List<PlayerDTO> findAll();
            
    /**
     * List of players belonging to Age category.
     *
     * @param AgeCategory
     * @return List of players belonging to Age category, no specific order
     */
    public List<PlayerDTO> getPlayersFor(AgeCategoryDTO ac);
}